<HTML>
<HEAD><TITLE>Welcome laboratory Engineering Computer(KMUTNB)</TITLE></HEAD>
<body background = "http://www.nmt.or.th/chonburi/nongchak/DocLib4/SiteImages/BG-Top.bmp">

<center>
	<h2>Welcome laboratory Engineering Computer(KMUTNB)</h2>
	<h6><- Detail all computer in the laboratory Engineering Computer(KMUTNB) -></h6>
	
	<table>
	<tr><td><center><form action="http://127.0.0.1:8000/computer_form" method="get">	
		<input type="submit" value="Add Computer">
	</form>	</center></td>
	<td><center><form action="http://127.0.0.1:8000/computerRepair_form" method="get">	
		<input type="submit" value="Add Repair Computer">
	</form>	</center></td>
	<td><center><form action="http://127.0.0.1:8000/computerDamaged_form" method="get">	
		<input type="submit" value="Add Damaged Computer">
	</form>	</center></td>
	<td><center> <form action="http://127.0.0.1:8000/report_computer" method="get">	
		<input type="submit" value="Report Computer">
	</form></center></td>
	<td><center> <form action="http://127.0.0.1:8000/report_computer_damaged" method="get">	
		<input type="submit" value="Report Only Computer Damaged">
	</form></center></td>
	<td><center> <form action="http://127.0.0.1:8000/svg" method="get">	
		<input type="submit" value="Report On SVG">
	</form></center></td>
	<td><center> <form action="http://127.0.0.1:8000/admin" method="get">	
		<input type="submit" value="admin">
	</form></center></td></tr>
	</table>
</center>


<center>
<h3>Report Computer.</h3>
<table BORDER = "1">
<tr><td WIDTH = 250 HEIGHT = 35><center><font color = blue>COMPUTER ID</center></td><td WIDTH = 250><center> <font color = blue>DATE REPAIR</center></td><td WIDTH = 250><center><font color = blue>REPAIRMAN</center></td><td WIDTH = 250><center><font color = blue>STATUS</center></td></tr>
	{% for Computers in Computers%}
		{% if Computers.last_date_repair = 'waiting repair' %}				
			<td><font color = red><center><h5> {{ Computers.id_computer }} <center></td>
			<td><font color = red><center><h5> {{ Computers.last_date_repair  }} <center></td>
			<td><font color = red><center><h5> {{ Computers.repairman  }} <center></td>
 			<td><font color = red><center><h5> {{ Computers.status  }} <center></td>
			</font>	
		{% else %}
			<td><font color = green><center><h5> {{ Computers.id_computer }} <center></td>
			<td><font color = green><center><h5> {{ Computers.last_date_repair  }} <center></td>
			<td><font color = green><center><h5> {{ Computers.repairman  }} <center></td>
 			<td><font color = green><center><h5> {{ Computers.status  }} <center></td>
		{% endif %}
		{% if not forloop.last %}
		{% endif %}
		</tr>
	{% endfor %}
	</table>		
	<br><br><br><br><br>
      


</BODY>


</HTML>
